package cn.kkcxy.blog.system.mapper.sys;

import cn.kkcxy.blog.core.entity.sys.SysPermission;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
* @author kk
* @description 针对表【sys_permission】的数据库操作Mapper
* @createDate 2024-09-11 00:50:27
* @Entity cn.kkcxy.blog.core.entity.sys.SysPermission
*/
public interface SysPermissionMapper extends BaseMapper<SysPermission> {

    /**
     * 根据id获取权限列表
     */
    List<String> getPermissionList(Long userId);

    /**
     * 查询用户拥有的路由id
     */
    List<Long> getRouterIdsByUserId(Long userId);
}




